package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 资金投入申请主表（存储资金申请信息）
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "资金投入申请主表（存储资金申请信息）")
@TableName("fund_approval")
public class FundApproval implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.INPUT)
    private String fundId;

    @Schema(description = "关联项目申请主表id")
    private String projectId;

    @Schema(description = "资金用途（如“建设文化活动中心”）")
    private String fundUsage;

    @Schema(description = "申请资金金额（元）")
    private BigDecimal applyAmount;

    @Schema(description = "所属项目级别")
    private String projectLevel;

    @Schema(description = "申请发起时间")
    private Date applyTime;

    @Schema(description = "当前审批级别")
    private String currentApprovalLevel;

    @Schema(description = "整体状态（pending-待审批/passed-通过/rejected-驳回）")
    private String overallStatus;

    @Schema(description = "创建人（申请人id）")
    private String createBy;

    @Schema(description = "记录创建时间")
    private Date createTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "更新时间")
    private Date updateTime;

    @Schema(description = "逻辑删除")
    private Integer deleted;

}
